package com.extension.company.contract.home;

import android.content.Context;

import com.extension.company.common.mvp.IModel;
import com.extension.company.common.mvp.IView;
import com.extension.company.model.entity.OrderConfirmCarListBean;

/**
 * 作者:zwk
 * 联系方式：497981239@qq.com
 * 时间：on 2019/8/6 08:49
 * 功能：等待支付
 */
public interface OnlineWaitForPaymentContract {

	interface View extends IView {
		void defaultAddress(String phone, String detailAddress, String receiverName); // 默认的地址

		void orderId(String orderId); // 订单id

		void orderDefaultAddress(OrderConfirmCarListBean.DataBeanX.DataBean addressDataBean, boolean hasDefaultAddress); // 设置默认的地址

	}

	interface model extends IModel {
		void requestDefaultAddress(DefaultAddressCallbak callbak); // 获取默认的收货地址

		void payForOrder(Context context, String goodId, String goodSpecId, String num, PayForOrderIdCallback callback); // 支付订单

		void orderConfirmCarList(String goodsInfo, String areaId, OrderConfirmListCallback callback);
	}

	interface DefaultAddressCallbak { // 默认收货地址的返回方法
		void m2p(String phone, String detailAddress, String receiverName);
	}

	interface PayForOrderIdCallback { // 订单id 返回
		void orderIdCallback(String id);
	}

	interface OrderConfirmListCallback {
		void orderConfirmCallback(OrderConfirmCarListBean.DataBeanX mDataBeanX);
	}
}
